<%--
  Created by IntelliJ IDEA.
  User: 123
  Date: 2020/10/30
  Time: 16:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
     欢迎,${sessionScope.name},<a href="javascript:void(0)" target="_top" onclick="x()" >退出登录</a>
</body>
<script type="text/javascript" src="${pageContext.request.contextPath}"></script>
    <script type="text/javascript">
    function x() {
        var c= confirm("确定要退出系统吗?")
        if (c){
            location="${pageContext.request.contextPath}/login.jsp"
        }
    }
</script>
</html>
